package login

import (
	"3-19yk/common/proto/user"
	"3-19yk/service/server"
	"context"
)

type ServerUser struct {
	user.UnimplementedUserServer
}

func (s ServerUser) Login(ctx context.Context, req *user.LoginReq) (*user.LoginResp, error) {
	login, err := server.Login(req)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServerUser) RealName(ctx context.Context, req *user.RealNameReq) (*user.RealNameResp, error) {
	login, err := server.RealName(req)
	if err != nil {
		return nil, err
	}
	return login, nil
}
